#include "stdio.h"
#include "ctrl.h"

extern void* LightNew();

static void init(CTRL *t)
{
	t->p1 = (Light*)LightNew();
}

static void turnOn(CTRL *t)
{
	t->p1->turnOn(t->p1);
}

static void turnOff(CTRL *t)
{
	t->p1->turnOff(t->p1);
}

CTOR(CTRL)
	FUNCTION_SETTING(init,init)
	FUNCTION_SETTING(turnOn,turnOn)
	FUNCTION_SETTING(turnOff,turnOff)
END_CTOR
